package common.Tables;

import java.io.Serializable;
import java.util.HashSet;
import java.util.Set;

/**
 * class DiagAvailability.
 * represents the DiagAvailability table
 * @author michal
 *
 */
public class DiagAvailability implements Serializable,Table{	
	private static final long serialVersionUID = 1L;
	private String diagID;	//diagnostic's id
	private String dateID;	//date
	private String notes;	//notes
	private Set<Diagnostics> diags= new HashSet<Diagnostics>(0);	//set of diagnostics	
	
	/*
	 * getters & setters
	 */
	public String getDiagID() {
		return diagID;
	}
	public void setDiagID(String diagID) {
		this.diagID = diagID;
	}
	public String getDateID() {
		return dateID;
	}
	public void setDateID(String dateID) {
		this.dateID = dateID;
	}
	public Set<Diagnostics> getDiags() {
		return diags;
	}
	public void setDiags(Set<Diagnostics> diags) {
		this.diags = diags;
	}
	public String getNotes() {
		return notes;
	}
	public void setNotes(String notes) {
		this.notes = notes;
	}
	/**
	 * c-tor using fields
	 * @param date
	 * @param notes
	 */
	public DiagAvailability(String diagID,String dateID,String notes){
		this.diagID=diagID;
		this.dateID=dateID;
		this.notes=notes;
	}
	/**
	 * default c-tor
	 */
	public DiagAvailability(){
		
	}		
	//toString override
	public String toString(){
		return "diagID: "+diagID+
				"date: "+dateID+" notes:"+notes;		
	}
	
}